package com.adcc.ags.gms.core.job;

import com.adcc.ags.gms.core.util.LogFactory;
import com.adcc.ags.gms.gw.service.GMSLogService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by zhangPeng on 2017/2/7.
 */
public class LogClearNotice {

    @Autowired
    private GMSLogService logService;

    @Autowired
    private LogFactory log;

    public void doNotice() {
        try {
            log.info(LogClearNotice.class, "LogClearNotice Job Begin");
            logService.deleteLog();
        } catch (Exception ex) {
            log.error(LogClearNotice.class, "doNotice() error", ex);
        }
    }

}
